package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.QCkpjMapper;
import com.ruoyi.system.domain.QCkpj;
import com.ruoyi.system.service.IQCkpjService;
import com.ruoyi.common.core.text.Convert;

/**
 * 服务窗口评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-03
 */
@Service
public class QCkpjServiceImpl implements IQCkpjService 
{
    @Autowired
    private QCkpjMapper qCkpjMapper;

    /**
     * 查询服务窗口评价
     * 
     * @param ckPingjiaId 服务窗口评价主键
     * @return 服务窗口评价
     */
    @Override
    public QCkpj selectQCkpjByCkPingjiaId(Long ckPingjiaId)
    {
        return qCkpjMapper.selectQCkpjByCkPingjiaId(ckPingjiaId);
    }

    /**
     * 查询服务窗口评价列表
     * 
     * @param qCkpj 服务窗口评价
     * @return 服务窗口评价
     */
    @Override
    public List<QCkpj> selectQCkpjList(QCkpj qCkpj)
    {
        return qCkpjMapper.selectQCkpjList(qCkpj);
    }

    /**
     * 新增服务窗口评价
     * 
     * @param qCkpj 服务窗口评价
     * @return 结果
     */
    @Override
    public int insertQCkpj(QCkpj qCkpj)
    {
        return qCkpjMapper.insertQCkpj(qCkpj);
    }

    /**
     * 修改服务窗口评价
     * 
     * @param qCkpj 服务窗口评价
     * @return 结果
     */
    @Override
    public int updateQCkpj(QCkpj qCkpj)
    {
        return qCkpjMapper.updateQCkpj(qCkpj);
    }

    /**
     * 批量删除服务窗口评价
     * 
     * @param ckPingjiaIds 需要删除的服务窗口评价主键
     * @return 结果
     */
    @Override
    public int deleteQCkpjByCkPingjiaIds(String ckPingjiaIds)
    {
        return qCkpjMapper.deleteQCkpjByCkPingjiaIds(Convert.toStrArray(ckPingjiaIds));
    }

    /**
     * 删除服务窗口评价信息
     * 
     * @param ckPingjiaId 服务窗口评价主键
     * @return 结果
     */
    @Override
    public int deleteQCkpjByCkPingjiaId(Long ckPingjiaId)
    {
        return qCkpjMapper.deleteQCkpjByCkPingjiaId(ckPingjiaId);
    }
}
